class HandoverEntity{
  final int? total;
  List<HandoverInfo>? rows;

  HandoverEntity({this.rows, this.total});

  factory HandoverEntity.fromJson(Map<String, dynamic> json) {
    final originList = json['rows'] as List?;
    List<HandoverInfo> protocolList =
        (originList??[]).map((value) => HandoverInfo.fromJson(value)).toList();
    return HandoverEntity(rows: protocolList, total: json['total']);
  }
}

class HandoverInfo {
  String? shifter;
  String? successor;
  String? shiftTime;
  String? successionTime;
  int? id;
  int? status;
  String? elderName;
  String? detail;

  HandoverInfo(
      {this.shifter,
      this.id,
      this.status,
      this.successor,
      this.shiftTime,
      this.successionTime,
      this.elderName,
      this.detail,
      });

  HandoverInfo.fromJson(Map data) {
    shifter = data['shifter'];
    successor = data['successor'];
    shiftTime = data['shiftTime'];
    successionTime = data['successionTime'];
    detail = data['detail'];
    elderName = data['elderName'];
    id = data['id'];
    status = data['status'];
  }
}